package org.penguin.study.bk.jackson.controller;

import org.penguin.study.bk.base.vo.Result;
import org.penguin.study.bk.jackson.model.User;
import org.springframework.web.bind.annotation.*;

/**
 * @author chengyinghua
 */
@RestController
@RequestMapping("/jackson")
public class JacksonController {

    @GetMapping("/getUser")
    public Result<?> getUser() {
        return Result.ok(new User());
    }

    @PostMapping("/createUser")
    public Result<?> createUser(@RequestBody User user) {
        return Result.ok(user);
    }
}
